Database Editor
Create and manage data tables and records for your application.
Overview
Database Editor provides a visual interface for working with your application's data. Create tables, define schemas, and manage records without writing SQL queries.
Concepts
Datatable
A structured data collection with defined fields and types. Similar to a database table, datatables store records with consistent schemas.
Schema
The structure definition for a table, including field names, types, and constraints.
Record
A single row of data in a table. Records contain values for each field defined in the schema.
View Tables
- Navigate to your App in the Dashboard.
- Click Database in the sidebar.
- View all tables with:
- Table Name: Display name
- Records: Number of rows
- Fields: Number of columns
- Created: When the table was created
Create a Table
- Navigate to Database in your app.
- Click Create Table.
- Fill in the table details:
- Name: Descriptive table name
- Slug: URL identifier (auto-generated)
- Description: Purpose of the table
- Define fields:
- Click Add Field
- Enter field name
- Select field type
- Configure constraints (required, unique, etc.)
- Click Create.
Field Types
| Type | Description | Example |
|---|---|---|
| String | Text data | "John Doe" |
| Number | Numeric data | 42, 3.14 |
| Boolean | True/False | true |
| Date | Date and time | "2025-01-13" |
| JSON | Structured data | {"key": "value"} |
| Reference | Link to another table | foreign key |
| File | File attachment | uploaded file |
| Array | List of values | ["a", "b", "c"] |
View Table Data
- Click on a table in the list.
- View records in the DataGrid:
- Columns: Table fields
- Rows: Individual records
- Sorting: Click column headers
- Filtering: Use filter options
Search Records
- Use the search bar above the grid.
- Enter search terms.
- Results filter automatically.
Add a Record
- Navigate to a table.
- Click Add Record.
- Fill in field values.
- Click Save.
Inline Editing
- Click on a cell in the DataGrid.
- Edit the value directly.
- Press Enter or click outside to save.
Edit a Record
- Click on a record row.
- Click Edit or double-click the row.
- Modify field values in the dialog.
- Click Save.
Delete Records
Single Record
- Click the Delete (trash) icon on a row.
- Confirm deletion.
Bulk Delete
- Select multiple records using checkboxes.
- Click Delete Selected.
- Confirm deletion.
Deleted records cannot be recovered. Ensure you have backups before bulk deletions.
Edit Table Schema
- Navigate to Database in your app.
- Click the Edit Schema icon on the table.
- Modify the schema:
- Add new fields
- Edit field types
- Remove fields
- Click Save Schema.
Changing field types or removing fields may cause data loss. Review changes carefully.
View Schema
View the schema in different formats:
Grid View
- Click Schema tab in the table view.
- See fields in a table format:
- Field name
- Type
- Constraints
JSON View
- Click JSON tab.
- View the raw schema definition.
- Copy for use in migrations or documentation.
Import Data
Import from CSV
- Navigate to a table.
- Click Import.
- Select CSV format.
- Choose your CSV file.
- Map columns to fields.
- Click Import.
Import from JSON
- Navigate to a table.
- Click Import.
- Select JSON format.
- Choose your JSON file.
- Review field mappings.
- Click Import.
Export Data
- Navigate to a table.
- Click Export.
- Select format (CSV or JSON).
- Download the file.
Table References
Create relationships between tables:
- Add a Reference field to your table.
- Select the target table.
- Choose the reference type:
- One-to-One: Single related record
- One-to-Many: Multiple related records
- Save the schema.
Configuration
Table Fields
| Field | Description | Required |
|---|---|---|
| Name | Display name | Yes |
| Slug | Unique identifier | Auto-generated |
| Description | Purpose of table | No |
Field Constraints
| Constraint | Description |
|---|---|
| Required | Field cannot be empty |
| Unique | Values must be unique |
| Default | Default value for new records |
| Min/Max | Value range limits |
Limits
| Resource | Limit |
|---|---|
| Tables per app | 50 |
| Fields per table | 100 |
| Records per table | 100,000 |
| Field name length | 64 characters |
Need higher limits? Contact support to discuss your requirements.
Troubleshooting
Import fails
Problem: Data import fails with errors.
Solution:
- Check the file format matches (CSV/JSON).
- Verify column headers match field names.
- Ensure data types are correct.
- Review the error report for specific issues.
Cannot delete table
Problem: Table deletion is blocked.
Solution:
- Check for references from other tables.
- Remove or update referencing fields first.
- Then delete the table.
Schema changes lost
Problem: Schema modifications aren't saved.
Solution:
- Ensure you click Save Schema after changes.
- Check for validation errors.
- Refresh and try again.
Related
Last Updated: January 2025